package com.boot.unity.api.wx.controller;

import com.boot.unity.api.wx.service.WxAchievementService;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 成绩信息
 */
@RestController
@RequestMapping("/wx/achievement")
@Validated
public class WxAchievementController {
    private final Log logger = LogFactory.getLog(WxAchievementController.class);
    @Autowired
    private WxAchievementService wxAchievementService;

    /**
     * 获取成绩信息
     * @return
     */
    @GetMapping("info")
    public Object info(String uid,String key) {
       return wxAchievementService.info(uid, key);
    }


}
